class UserInfoModel {
  int id;
  String memberTel;
  String memberToken;
  String memberName;
  String memberNickname;
  int memberType;
  String memberCreatetime;
  String balance;
  int gold;
  String memberHead;
  int memberFollow;
  int memberExp;
  String lastLogin;
  String invitationcode;
  int disturb;
  String otherinvitationcode;

  UserInfoModel(
      {this.id,
      this.memberTel,
      this.memberToken,
      this.memberName,
      this.memberNickname,
      this.memberType,
      this.memberCreatetime,
      this.balance,
      this.gold,
      this.memberHead,
      this.memberFollow,
      this.memberExp,
      this.lastLogin,
      this.invitationcode,
      this.disturb,
      this.otherinvitationcode});

  UserInfoModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    memberTel = json['member_tel'];
    memberToken = json['member_token'];
    memberName = json['member_name'];
    memberNickname = json['member_nickname'];
    memberType = json['member_type'];
    memberCreatetime = json['member_createtime'];
    balance = json['balance'];
    gold = json['gold'];
    memberHead = json['member_head'];
    memberFollow = json['member_follow'];
    memberExp = json['member_exp'];
    lastLogin = json['last_login'];
    invitationcode = json['invitationcode'];
    disturb = json['disturb'];
    otherinvitationcode = json['otherinvitationcode'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['member_tel'] = this.memberTel;
    data['member_token'] = this.memberToken;
    data['member_name'] = this.memberName;
    data['member_nickname'] = this.memberNickname;
    data['member_type'] = this.memberType;
    data['member_createtime'] = this.memberCreatetime;
    data['balance'] = this.balance;
    data['gold'] = this.gold;
    data['member_head'] = this.memberHead;
    data['member_follow'] = this.memberFollow;
    data['member_exp'] = this.memberExp;
    data['last_login'] = this.lastLogin;
    data['invitationcode'] = this.invitationcode;
    data['disturb'] = this.disturb;
    data['otherinvitationcode'] = this.otherinvitationcode;
    return data;
  }

  @override
  String toString() {
    return 'UserInfoModel{id: $id, memberTel: $memberTel, memberToken: $memberToken, memberName: $memberName, memberNickname: $memberNickname, memberType: $memberType, memberCreatetime: $memberCreatetime, balance: $balance, gold: $gold, memberHead: $memberHead, memberFollow: $memberFollow, memberExp: $memberExp, lastLogin: $lastLogin, invitationcode: $invitationcode, disturb: $disturb}';
  }


}
